package com.starry.module.system.core.tenant.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.starry.db.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

;

/**
 * 系统租户-实体
 *
 * @author xiaoke
 */
@Schema(description = "系统租户实体")
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_tenant")
public class SysTenant extends BaseEntity {

    /**
     * 租户Id
     */
    @TableId
    private Long id;

    /**
     * 租户名
     */
    @Schema(description = "租户名")
    private String name;
    /**
     * 联系人
     */
    @Schema(description = "联系人")
    private String contactName;
    /**
     * 联系手机
     */
    @Schema(description = "联系手机")
    private String contactMobile;
    /**
     * 租户状态（0正常 1停用）
     */
    @Schema(description = "租户状态（0正常 1停用）")
    private Integer status;
    /**
     * 绑定域名
     */
    @Schema(description = "绑定域名")
    private String website;
    /**
     * 租户套餐编号
     */
    @Schema(description = "租户套餐编号")
    private Long packageId;
    /**
     * 过期时间
     */
    @Schema(description = "过期时间")
    private LocalDateTime expireTime;
    /**
     * 账号数量
     */
    @Schema(description = "账号数量")
    private Integer accountCount;
}

